<?php
include '../includes/config.inc.php';
include 'baseapi.php';

$customer_id=$_WGT['m_customer_id'];
$token=substr(md5('wgt'.$customer_id),0,15);

$wechatObj = new baseapi($token,$customer_id);
if($_GET['echostr'] && $_GET["signature"] && $_GET["timestamp"] && $_GET["nonce"]){
	echo $wechatObj->valid();
}else{
    echo $wechatObj->responseMsg();
}
?>